import Layout from '@/layout/Layout'

const systemRouter = {
  path: '/sys',
  component: Layout,
  redirect: 'noredirect',
  name: '系统管理',
  meta: {
    title: '系统管理',
    icon: 'fa-cog'
  },
  children: [
    {
      path: 'adminManagement',
      component: () => import('@/views/system/AdminManagement'),
      name: 'AdminManagement',
      meta: { title: '管理员' , cache: true}
    },
    {
      path: 'userManagement',
      component: () => import('@/views/system/UserManagement'),
      name: 'UserManagement',
      meta: { title: '账号管理' , cache: true}
    },
    {
      path: 'roleManagement',
      component: () => import('@/views/system/RoleManagement'),
      name: 'RoleManagement',
      meta: { title: '角色管理', cache: true}
    },
    {
      path: 'menuManagement',
      component: () => import('@/views/system/MenuManagement'),
      name: 'MenuManagement',
      meta: { title: '菜单管理', cache: true}
    },
    {
      path: 'departManagement',
      component: () => import('@/views/system/DepartManagement'),
      name: 'DepartManagement',
      meta: { title: '公司管理', cache: true}
    },
    {
      path: 'ruleManagement',
      component: () => import('@/views/system/RuleManagement'),
      name: 'RuleManagement',
      meta: { title: '平台规则', cache: true}
    },
    {
      path: 'tenantManagement',
      component: () => import('@/views/system/TenantManagement'),
      name: 'TenantManagement',
      meta: { title: '租户管理', cache: true}
    },
   
  ]
}

export default systemRouter
